package edu.qd.learn.newchapter.chapter03.work;

import java.time.LocalDate;

/**
 * 事件  三个属性
 *
 * @author 布衣
 */
public class Event {

    private String title;

    //日期  标准日期格式 "2009-09-09"  2009-09-09
    private LocalDate data;

    private String content;

    public Event(String title, LocalDate data, String content) {
        this.title = title;
        this.data = data;
        this.content = content;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public LocalDate getData() {
        return data;
    }

    public void setData(LocalDate data) {
        this.data = data;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Event{" +
                "title='" + title + '\'' +
                ", data=" + data +
                ", content='" + content + '\'' +
                '}';
    }
}
